package main

import (
	"fmt"
)

type Controller struct {
	M int32
}

type Something interface {
	Get()
	Post()
}

func (c Controller) Get() {
	fmt.Println("GET")
}

func (c Controller) Post() {
	fmt.Println("Post")
}

type T struct {
	Controller
}

// 继承
func (t *T) Get() {
	fmt.Print("T")
}

/*func (t *T) Post() {
	fmt.Print("T")
}*/

func main() {
	var something Something
	something = new(T)
	var t T
	t.M = 1
	something.Get()
	something.Post()

}
